package person.learn.controller.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by barton on 16-1-29.
 * 1.修改springboot默认的404和500错误处理的显示方式
 */
@Controller
public class ErrorController {

    @RequestMapping("/404")
    public String page404() {
        return "error/404";
    }

    @RequestMapping("/500")
    public String page500() {
        return "error/500";
    }

}
